import { observable, action, toJS } from 'mobx';
import {WeaTableNew } from 'comsMobx';
import {WeaLocaleProvider} from 'ecCom';
import * as TaskReport from '../../apis/task/taskReport'
const getLabel = WeaLocaleProvider.getLabel;
const { TableStore } = WeaTableNew;
export default class OtherRelateTastStore {
    @observable tableStore = new TableStore(); // new table
    @observable title = "";
    //获取人员的weatable
    @action
    getTaskList = (params) => {
        TaskReport.otherTaskList(params).then(action(res => {
            if(res.status){
                this.title = res.title;
                this.tableStore.getDatas(res.datas);
            }
        }))
    }
}